x86: be more power-efficient when waiting forever
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 3 Dec 2013 08:54:12 +0000 (09:54 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Dec 2013 08:54:12 +0000 (09:54 +0100)
The effect is unchanged, but the processor will be spending most of its time
in the C1 or C1E power state rather than C0.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/traps.c

index d8b3eac15a8525149a9b17cc1174b0dbb9371acb..8c355e547c985d21b4fad5bcb1b1b77b60ba790c 100644 (file)
@@ -1448,7 +1448,8 @@ void __init do_early_page_fault(struct cpu_user_regs *regs)
         printk("Stack dump: ");
         while ( ((long)stk & ((PAGE_SIZE - 1) & ~(BYTES_PER_LONG - 1))) != 0 )
             printk("%p ", _p(*stk++));
-        for ( ; ; ) ;
+        for ( ; ; )
+            halt();
     }
 }